import { userStorage } from "@/enums/storage"

// 存取删Token
export function getToken(){
	return uni.getStorageSync(userStorage.userToken) || ""
} 
export function setToken(data:string|null){
	uni.setStorageSync(userStorage.userToken,data)
}
export function removeToken(){
	uni.removeStorageSync(userStorage.userToken)
}

// 存取删userInfo
export function getUserInfo(){
	return uni.getStorageSync(userStorage.userInfo) || ""
}
export function setUserInfo(data:Object|null){
	uni.setStorageSync(userStorage.userInfo,data)
}
export function removeUserInfo(){
	uni.removeStorageSync(userStorage.userInfo)
} 
 